using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._TransitFeed
{
    /// <summary>
    /// <para>Features To GTFS Stops</para>
    /// <para>Converts a feature class to a GTFS stops.txt file for a GTFS public transit dataset.</para>
    /// <para>将要素类转换为 GTFS 公共交通数据集的 GTFS stops.txt 文件。</para>
    /// </summary>    
    [DisplayName("Features To GTFS Stops")]
    public class FeaturesToGTFSStops : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeaturesToGTFSStops()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>A point feature class containing transit stop geometries and at least the minimum required GTFS stops.txt file fields except stop_lat and stop_lon.</para>
        /// <para>包含公交停靠点几何和至少所需的最小 GTFS stops.txt文件字段（stop_lat 和 stop_lon除外）的点要素类。</para>
        /// </param>
        /// <param name="_out_gtfs_stops_file">
        /// <para>Output GTFS Stops File</para>
        /// <para>The output stops.txt file.</para>
        /// <para>输出stops.txt文件。</para>
        /// </param>
        public FeaturesToGTFSStops(object _in_features, object _out_gtfs_stops_file)
        {
            this._in_features = _in_features;
            this._out_gtfs_stops_file = _out_gtfs_stops_file;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Features To GTFS Stops";

        public override string CallName => "conversion.FeaturesToGTFSStops";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _out_gtfs_stops_file];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>A point feature class containing transit stop geometries and at least the minimum required GTFS stops.txt file fields except stop_lat and stop_lon.</para>
        /// <para>包含公交停靠点几何和至少所需的最小 GTFS stops.txt文件字段（stop_lat 和 stop_lon除外）的点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output GTFS Stops File</para>
        /// <para>The output stops.txt file.</para>
        /// <para>输出stops.txt文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output GTFS Stops File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_gtfs_stops_file { get; set; }


        public FeaturesToGTFSStops SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}